package edu.zju.gis.dbfg.server.mapper;

import edu.zju.gis.dbfg.common.base.BaseMapper;
import edu.zju.gis.dbfg.server.model.TaskRecord;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskRecordMapper extends BaseMapper<TaskRecord, String> {
    int deleteByPrimaryKey(String applicationId);

    int insert(TaskRecord record);

    int insertSelective(TaskRecord record);

    TaskRecord selectByPrimaryKey(String applicationId);

    int updateByPrimaryKeySelective(TaskRecord record);

    int updateByPrimaryKeyWithBLOBs(TaskRecord record);

    int updateByPrimaryKey(TaskRecord record);

    List<TaskRecord> selectByCreateUser(String user);

    List<TaskRecord> selectByCreateUserWithState(@Param("user")String user, @Param("state")String state);

    List<TaskRecord> selectByCreateUserWithOutState(@Param("user")String user, @Param("state")String state);
}